package ws;

import org.springframework.stereotype.Service;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;

@Service
@WebService(name = "HelloWorldWsService" ,targetNamespace = "douyin.com/ws")
public class HelloWorldWsService {

    @WebMethod(operationName = "sayHello" , action = "/sayHello")
    @WebResult(name = "sayContext")
    public String sayHello(@WebParam(name = "name") String name){
        return "hello " + name;
    }
}
